package com.ftg.learn.chapter02.javabase;

/**
 * -
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/12/20 上午11:14
 */
public class User {

    public User() {
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public User(int id,String username, String password) {
        this.username = username;
        this.id = id;
        this.password = password;
    }

    private int id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
